﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IMC.Prepare.Core.Domain.Customers;
using IMC.Prepare.Core.Data;

namespace IMC.Prepare.Services.Customers
{
    public partial class CustomerContentService : ICustomerContentService
    {
        private readonly IRepository<CustomerContent> _contentRepository;
        //private readonly IEventPublisher _eventPublisher;

        public CustomerContentService(
           IRepository<CustomerContent> contentRepository)
           //IEventPublisher eventPublisher)
        {
            _contentRepository = contentRepository;
            //_eventPublisher = eventPublisher;
        }


        public virtual void InsertCustomerContent(CustomerContent content)
        {
            if (content == null)
                throw new ArgumentNullException("content");

            _contentRepository.Insert(content);

            //event notification
            //_eventPublisher.EntityInserted(content);
        }
    }
}
